home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Win2K TCPIP Sec 3.xpl < prev    next >
Text File  |  2001-05-08  |  1KB  |  47 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Network\TCP/IP Hardening
  5. "NAME"="ICMP Redirects"
  6. "OSVERSION"="000101"
  7. "VERSION"="1.00"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Enable ICMP Redirects (Default)"
  11. "TEXT 2"="Do not do anything on ICMP Redirects" 
  12. "DESCRIPTION 1"="ICMP redirects normally cause Windows to alter it's internal routing table. In closed enviroments (LAN) this is a good thing to have."
  13. "DESCRIPTION 2"="However, if you need maximum security this can be a security problem as a hacker might use ICMP redirects to "trick" the server."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18.  
  19.  
  20.  
  21. sP="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\EnableICMPRedirect"
  22.  
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sP)
  25.  
  26.  if i=1 or IsEmpty(i) then 
  27.     SetUIElement 1,true
  28.  else
  29.     SetUIElement 2,true
  30.  end if
  31.  
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  if GetUIElement(1)=true then
  36.     Call RegWriteValue(sP,1,2)
  37.  else
  38.     Call RegWriteValue(sP,0,2)
  39.  end if
  40.  
  41.  Call Restart()
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.